package org.fenixsoft.classloading;

/**
 * @program: jvm_test
 * @description: 字段解析
 * @author: zxb
 * @date: 2020-12-26 17:06
 **/
public class DeadLoopClass {
    static {
        /**
         * 如果不加上这个if语句，编译器将提示“Initializer must be able to complete normally”并拒绝编译
         *
         */
        if (true) {
            System.out.println(Thread.currentThread() + " init DeadLoopClass");
            while (true){

            }
        }
    }
}
